package com.xianlai.microcosm_log

import androidx.annotation.NonNull
import io.flutter.embedding.engine.plugins.FlutterPlugin

/** MicrocosmLogPlugin */
class MicrocosmLogPlugin : FlutterPlugin {

    override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
        ChannelManager.init(flutterPluginBinding)
    }

    override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
        ChannelManager.release()
    }
}
